package cn.xopencode.userservice.enums;

import cn.xopencode.common.framework.core.IntArrayValuable;

import java.util.Arrays;

/**
 * 政治面貌枚举
 */
public enum PoliticalStatusEnum implements IntArrayValuable {
    Masses(0, "群众"),
    PartyMember(1, "党员"),
    Member(3, "团员");
    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(PoliticalStatusEnum::getPoliticalStatus).toArray();

    /**
     *  政治面貌标识
     */
    private final Integer political_status;
    /**
     * 描述
     */
    private final String name;

    PoliticalStatusEnum(Integer political_status, String name) {
        this.political_status = political_status;
        this.name = name;
    }
    public Integer getPoliticalStatus() {
        return political_status;
    }

    public String getName() {
        return name;
    }

    @Override
    public int[] array() {
        return ARRAYS;
    }

}
